.class public Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Lcom/waiqin365/lightapp/deptmanager/c;

.field private b:Lcom/waiqin365/compons/view/c;

.field private c:Lcom/waiqin365/compons/view/c;

.field private d:Lcom/waiqin365/compons/view/c;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;Lcom/waiqin365/compons/view/c;)Lcom/waiqin365/compons/view/c;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->b:Lcom/waiqin365/compons/view/c;

    return-object p1
.end method

.method private a()V
    .locals 4

    new-instance v0, Lcom/waiqin365/lightwork/directory/b/w;

    invoke-direct {v0}, Lcom/waiqin365/lightwork/directory/b/w;-><init>()V

    sget-object v1, Lcom/waiqin365/base/db/offlinedata/q;->b:Lcom/waiqin365/base/db/offlinedata/q;

    iput-object v1, v0, Lcom/waiqin365/lightwork/directory/b/w;->c:Lcom/waiqin365/base/db/offlinedata/q;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/waiqin365/lightwork/directory/b/w;->b:Z

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->mContext:Landroid/content/Context;

    const-class v3, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "param"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const v0, 0x10001

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->a()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 3

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->showProgressDialog(Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightapp/deptmanager/b/a/l;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->auth_code:Ljava/lang/String;

    invoke-direct {v0, v1, p1}, Lcom/waiqin365/lightapp/deptmanager/b/a/l;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v1, Lcom/waiqin365/lightapp/deptmanager/b/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->a:Lcom/waiqin365/lightapp/deptmanager/c;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/deptmanager/b/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/deptmanager/b/c;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/deptmanager/b/b;->start()V

    return-void
.end method

.method private b()V
    .locals 6

    const-string/jumbo v0, "time"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u5f00\u59cb\u8bf7\u6c42\uff1a"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    new-instance v2, Ljava/text/SimpleDateFormat;

    const-string/jumbo v3, "yyyy-MM-dd HH:mm:ss SSS"

    sget-object v4, Ljava/util/Locale;->CHINA:Ljava/util/Locale;

    invoke-direct {v2, v3, v4}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    new-instance v3, Ljava/util/Date;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-direct {v3, v4, v5}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v2, v3}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->showProgressDialog(Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightapp/deptmanager/b/a/g;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    invoke-virtual {v1, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/waiqin365/lightapp/deptmanager/b/a/g;-><init>(Ljava/lang/String;)V

    new-instance v1, Lcom/waiqin365/lightapp/deptmanager/b/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->a:Lcom/waiqin365/lightapp/deptmanager/c;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/deptmanager/b/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/deptmanager/b/c;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/deptmanager/b/b;->start()V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->c()V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;)Lcom/waiqin365/compons/view/c;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->b:Lcom/waiqin365/compons/view/c;

    return-object v0
.end method

.method private c()V
    .locals 6

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->mContext:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "deptId"

    const-string/jumbo v2, "-1"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->startActivity(Landroid/content/Intent;)V

    const-string/jumbo v0, "time"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u8df3\u8f6c\u9875\u9762\uff1a"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    new-instance v2, Ljava/text/SimpleDateFormat;

    const-string/jumbo v3, "yyyy-MM-dd HH:mm:ss SSS"

    sget-object v4, Ljava/util/Locale;->CHINA:Ljava/util/Locale;

    invoke-direct {v2, v3, v4}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    new-instance v3, Ljava/util/Date;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-direct {v3, v4, v5}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v2, v3}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method

.method private d()V
    .locals 1

    const v0, 0x7f0c007c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 7

    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    const v0, 0x10001

    if-ne p1, v0, :cond_0

    if-eqz p3, :cond_0

    const-string/jumbo v0, "empid"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Lcom/waiqin365/compons/view/c;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->mContext:Landroid/content/Context;

    const-string/jumbo v2, ""

    const v3, 0x7f0806a1

    invoke-virtual {p0, v3}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    const-string/jumbo v6, "empname"

    invoke-virtual {p3, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    aput-object v6, v4, v5

    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    sget v4, Lcom/waiqin365/compons/view/c;->c:I

    new-instance v5, Lcom/waiqin365/lightapp/deptmanager/b;

    invoke-direct {v5, p0, p3}, Lcom/waiqin365/lightapp/deptmanager/b;-><init>(Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;Landroid/content/Intent;)V

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/compons/view/c;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ILcom/waiqin365/compons/view/d;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->d:Lcom/waiqin365/compons/view/c;

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->d:Lcom/waiqin365/compons/view/c;

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->show()V

    :cond_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 6

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->c:Lcom/waiqin365/compons/view/c;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/compons/view/c;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->mContext:Landroid/content/Context;

    const-string/jumbo v2, ""

    const v3, 0x7f0806a0

    invoke-virtual {p0, v3}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    sget v4, Lcom/waiqin365/compons/view/c;->c:I

    new-instance v5, Lcom/waiqin365/lightapp/deptmanager/a;

    invoke-direct {v5, p0}, Lcom/waiqin365/lightapp/deptmanager/a;-><init>(Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;)V

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/compons/view/c;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ILcom/waiqin365/compons/view/d;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->c:Lcom/waiqin365/compons/view/c;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->c:Lcom/waiqin365/compons/view/c;

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->show()V

    goto :goto_0

    :sswitch_1
    invoke-direct {p0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->b()V

    goto :goto_0

    :sswitch_2
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->back()V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c007c -> :sswitch_2
        0x7f0c0353 -> :sswitch_1
        0x7f0c0354 -> :sswitch_0
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4

    const v3, 0x7f0c0354

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    new-instance v0, Lcom/waiqin365/lightapp/deptmanager/c;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/deptmanager/c;-><init>(Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->a:Lcom/waiqin365/lightapp/deptmanager/c;

    const v0, 0x7f030092

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->d()V

    const v0, 0x7f0c007e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f080132

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0351

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const-string/jumbo v1, "cuslogin_mydata_data_company"

    const-string/jumbo v2, ""

    invoke-static {p0, v1, v2}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0352

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const-string/jumbo v1, "cuslogin_mydata_data_company_code"

    const-string/jumbo v2, ""

    invoke-static {p0, v1, v2}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/login/mainview/a;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0, v3}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p0, v3}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method
